
public class Light {

	private Vector position;
	private float redColor;
	private float greenColor;
	private float blueColor;
	private final float specularIntensity;
	private final float shadowIntensity;
	private final float lightRadius;

	
	
	public Light(Vector position, float red, float green, float blue, float spec, float shadow, float lr){
		
		this.position = position;
		this.redColor = red;
		this.greenColor = green;
		this.blueColor = blue;
		this.specularIntensity = spec;
		shadowIntensity=shadow;
		lightRadius=lr;
		
	}
	
	public Light(double positionX, double positionY, double positionZ,
				 float red, float green, float blue, float spec, float shadow, float lr){
		
		this.position = new Vector(positionX, positionY, positionZ);
		this.redColor = red;
		this.greenColor = green;
		this.blueColor = blue;
		this.specularIntensity = spec;
		shadowIntensity=shadow;
		lightRadius=lr;
		
	}
	
	public Vector getPosition(){
		return position;
	}
	
	public float getRedColor(){
		return this.redColor;
	}
	
	public float getGreenColor(){
		return this.greenColor;
	}
	
	public float getBlueColor(){
		return this.blueColor;
	}
	
	public float getSpecularIntensity(){
		return this.specularIntensity;
	}
	
	public float getShadowIntensity(){
		return this.shadowIntensity;
	}
	
	public float getLightRadius(){
		return lightRadius;
	}
	
	public double getPositionX(){
		return this.position.getvx();
	}
	
	public double getPositionY(){
		return this.position.getvy();
	}
	
	public double getPositionZ(){
		return this.position.getvz();
	}
	
	public void setPosition(Vector newPosition){
		this.position = newPosition;
	}
}
